package com.ourteam.system.dao;

/**
 * Template Name : DAO数据对象
 * Template Version : 1
 * Template Last Modfiy Date : Fri Aug 18 15:51:23 CST 2017
 * Auto Generate Date : 2018-07-31 15:13:21
  * Warning ! This file will be overwrite when regenerate !
  *
 */
import org.apache.commons.lang.StringUtils;


public class SysRoleRelate implements java.io.Serializable {
    private long id;

    /**
     * Attribute id Be Seted Falg
     */
    private boolean idSetted = false;

    /**
    * Attribute id is Null Falg
    */
    private boolean idNull = false;
    private long relatedSysRoleId;

    /**
     * Attribute relatedSysRoleId Be Seted Falg
     */
    private boolean relatedSysRoleIdSetted = false;

    /**
    * Attribute relatedSysRoleId is Null Falg
    */
    private boolean relatedSysRoleIdNull = false;
    private String remarks;

    /**
     * Attribute remarks Be Seted Falg
     */
    private boolean remarksSetted = false;

    /**
    * Attribute remarks is Null Falg
    */
    private boolean remarksNull = false;
    private String status;

    /**
     * Attribute status Be Seted Falg
     */
    private boolean statusSetted = false;

    /**
    * Attribute status is Null Falg
    */
    private boolean statusNull = false;
    private long sysRoleGroupId;

    /**
     * Attribute sysRoleGroupId Be Seted Falg
     */
    private boolean sysRoleGroupIdSetted = false;

    /**
    * Attribute sysRoleGroupId is Null Falg
    */
    private boolean sysRoleGroupIdNull = false;
    private String relatedSysRoleCode;

    /**
     * Attribute relatedSysRoleCode Be Seted Falg
     */
    private boolean relatedSysRoleCodeSetted = false;

    /**
    * Attribute relatedSysRoleCode is Null Falg
    */
    private boolean relatedSysRoleCodeNull = false;
    private String sysRoleName;

    /**
     * Attribute sysRoleName Be Seted Falg
     */
    private boolean sysRoleNameSetted = false;

    /**
    * Attribute sysRoleName is Null Falg
    */
    private boolean sysRoleNameNull = false;
    private String sysRoleCode;

    /**
     * Attribute sysRoleCode Be Seted Falg
     */
    private boolean sysRoleCodeSetted = false;

    /**
    * Attribute sysRoleCode is Null Falg
    */
    private boolean sysRoleCodeNull = false;
    private String sysRoleType;

    /**
     * Attribute sysRoleType Be Seted Falg
     */
    private boolean sysRoleTypeSetted = false;

    /**
    * Attribute sysRoleType is Null Falg
    */
    private boolean sysRoleTypeNull = false;
    private long sysRoleDomainId;

    /**
     * Attribute sysRoleDomainId Be Seted Falg
     */
    private boolean sysRoleDomainIdSetted = false;

    /**
    * Attribute sysRoleDomainId is Null Falg
    */
    private boolean sysRoleDomainIdNull = false;
    private String sysDomainCode;

    /**
     * Attribute sysDomainCode Be Seted Falg
     */
    private boolean sysDomainCodeSetted = false;

    /**
    * Attribute sysDomainCode is Null Falg
    */
    private boolean sysDomainCodeNull = false;
    private String sysDomainName;

    /**
     * Attribute sysDomainName Be Seted Falg
     */
    private boolean sysDomainNameSetted = false;

    /**
    * Attribute sysDomainName is Null Falg
    */
    private boolean sysDomainNameNull = false;

    public SysRoleRelate() {
        super();
    }

    /**
         * Get id
         *
         * @return long
         */
    final public long getId() {
        return id;
    }

    /**
     * Set id
     *
     * @param long
     */
    final public void setId(long id) {
        this.id = id;

        this.idSetted = true;

        this.setIdNull(false);
    }

    /**
     * Get id Has Been Setted
     *
     * @return boolean
     */
    final public boolean isIdSetted() {
        return this.idSetted;
    }

    /**
     * Set id Null
     *
     */
    final public void setIdNull() {
        this.idNull = true;
    }

    final public void setIdNull(boolean aNullFlag) {
        this.idNull = aNullFlag;
    }

    final public boolean isIdNull() {
        return this.idNull;
    }

    /**
         * Get relatedSysRoleId
         *
         * @return long
         */
    final public long getRelatedSysRoleId() {
        return relatedSysRoleId;
    }

    /**
     * Set relatedSysRoleId
     *
     * @param long
     */
    final public void setRelatedSysRoleId(long relatedSysRoleId) {
        this.relatedSysRoleId = relatedSysRoleId;

        this.relatedSysRoleIdSetted = true;

        this.setRelatedSysRoleIdNull(false);
    }

    /**
     * Get relatedSysRoleId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedSysRoleIdSetted() {
        return this.relatedSysRoleIdSetted;
    }

    /**
     * Set relatedSysRoleId Null
     *
     */
    final public void setRelatedSysRoleIdNull() {
        this.relatedSysRoleIdNull = true;
    }

    final public void setRelatedSysRoleIdNull(boolean aNullFlag) {
        this.relatedSysRoleIdNull = aNullFlag;
    }

    final public boolean isRelatedSysRoleIdNull() {
        return this.relatedSysRoleIdNull;
    }

    /**
         * Get remarks
         *
         * @return String
         */
    final public String getRemarks() {
        if (isRemarksNull()) {
            return null;
        } else {
            return StringUtils.trim(remarks);
        }
    }

    /**
     * Set remarks
     *
     * @param String
     */
    final public void setRemarks(String remarks) {
        this.remarks = StringUtils.trim(remarks);

        this.remarksSetted = true;

        this.setRemarksNull(this.remarks == null);
    }

    /**
     * Get remarks Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRemarksSetted() {
        return this.remarksSetted;
    }

    /**
     * Set remarks Null
     *
     */
    final public void setRemarksNull() {
        this.remarksNull = true;
    }

    final public void setRemarksNull(boolean aNullFlag) {
        this.remarksNull = aNullFlag;
    }

    final public boolean isRemarksNull() {
        return this.remarksNull;
    }

    /**
         * Get status
         *
         * @return String
         */
    final public String getStatus() {
        if (isStatusNull()) {
            return null;
        } else {
            return StringUtils.trim(status);
        }
    }

    /**
     * Set status
     *
     * @param String
     */
    final public void setStatus(String status) {
        this.status = StringUtils.trim(status);

        this.statusSetted = true;

        this.setStatusNull(this.status == null);
    }

    /**
     * Get status Has Been Setted
     *
     * @return boolean
     */
    final public boolean isStatusSetted() {
        return this.statusSetted;
    }

    /**
     * Set status Null
     *
     */
    final public void setStatusNull() {
        this.statusNull = true;
    }

    final public void setStatusNull(boolean aNullFlag) {
        this.statusNull = aNullFlag;
    }

    final public boolean isStatusNull() {
        return this.statusNull;
    }

    /**
         * Get sysRoleGroupId
         *
         * @return long
         */
    final public long getSysRoleGroupId() {
        return sysRoleGroupId;
    }

    /**
     * Set sysRoleGroupId
     *
     * @param long
     */
    final public void setSysRoleGroupId(long sysRoleGroupId) {
        this.sysRoleGroupId = sysRoleGroupId;

        this.sysRoleGroupIdSetted = true;

        this.setSysRoleGroupIdNull(false);
    }

    /**
     * Get sysRoleGroupId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysRoleGroupIdSetted() {
        return this.sysRoleGroupIdSetted;
    }

    /**
     * Set sysRoleGroupId Null
     *
     */
    final public void setSysRoleGroupIdNull() {
        this.sysRoleGroupIdNull = true;
    }

    final public void setSysRoleGroupIdNull(boolean aNullFlag) {
        this.sysRoleGroupIdNull = aNullFlag;
    }

    final public boolean isSysRoleGroupIdNull() {
        return this.sysRoleGroupIdNull;
    }

    /**
         * Get relatedSysRoleCode
         *
         * @return String
         */
    final public String getRelatedSysRoleCode() {
        if (isRelatedSysRoleCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(relatedSysRoleCode);
        }
    }

    /**
     * Set relatedSysRoleCode
     *
     * @param String
     */
    final public void setRelatedSysRoleCode(String relatedSysRoleCode) {
        this.relatedSysRoleCode = StringUtils.trim(relatedSysRoleCode);

        this.relatedSysRoleCodeSetted = true;

        this.setRelatedSysRoleCodeNull(this.relatedSysRoleCode == null);
    }

    /**
     * Get relatedSysRoleCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isRelatedSysRoleCodeSetted() {
        return this.relatedSysRoleCodeSetted;
    }

    /**
     * Set relatedSysRoleCode Null
     *
     */
    final public void setRelatedSysRoleCodeNull() {
        this.relatedSysRoleCodeNull = true;
    }

    final public void setRelatedSysRoleCodeNull(boolean aNullFlag) {
        this.relatedSysRoleCodeNull = aNullFlag;
    }

    final public boolean isRelatedSysRoleCodeNull() {
        return this.relatedSysRoleCodeNull;
    }

    /**
         * Get sysRoleName
         *
         * @return String
         */
    final public String getSysRoleName() {
        if (isSysRoleNameNull()) {
            return null;
        } else {
            return StringUtils.trim(sysRoleName);
        }
    }

    /**
     * Set sysRoleName
     *
     * @param String
     */
    final public void setSysRoleName(String sysRoleName) {
        this.sysRoleName = StringUtils.trim(sysRoleName);

        this.sysRoleNameSetted = true;

        this.setSysRoleNameNull(this.sysRoleName == null);
    }

    /**
     * Get sysRoleName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysRoleNameSetted() {
        return this.sysRoleNameSetted;
    }

    /**
     * Set sysRoleName Null
     *
     */
    final public void setSysRoleNameNull() {
        this.sysRoleNameNull = true;
    }

    final public void setSysRoleNameNull(boolean aNullFlag) {
        this.sysRoleNameNull = aNullFlag;
    }

    final public boolean isSysRoleNameNull() {
        return this.sysRoleNameNull;
    }

    /**
         * Get sysRoleCode
         *
         * @return String
         */
    final public String getSysRoleCode() {
        if (isSysRoleCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(sysRoleCode);
        }
    }

    /**
     * Set sysRoleCode
     *
     * @param String
     */
    final public void setSysRoleCode(String sysRoleCode) {
        this.sysRoleCode = StringUtils.trim(sysRoleCode);

        this.sysRoleCodeSetted = true;

        this.setSysRoleCodeNull(this.sysRoleCode == null);
    }

    /**
     * Get sysRoleCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysRoleCodeSetted() {
        return this.sysRoleCodeSetted;
    }

    /**
     * Set sysRoleCode Null
     *
     */
    final public void setSysRoleCodeNull() {
        this.sysRoleCodeNull = true;
    }

    final public void setSysRoleCodeNull(boolean aNullFlag) {
        this.sysRoleCodeNull = aNullFlag;
    }

    final public boolean isSysRoleCodeNull() {
        return this.sysRoleCodeNull;
    }

    /**
         * Get sysRoleType
         *
         * @return String
         */
    final public String getSysRoleType() {
        if (isSysRoleTypeNull()) {
            return null;
        } else {
            return StringUtils.trim(sysRoleType);
        }
    }

    /**
     * Set sysRoleType
     *
     * @param String
     */
    final public void setSysRoleType(String sysRoleType) {
        this.sysRoleType = StringUtils.trim(sysRoleType);

        this.sysRoleTypeSetted = true;

        this.setSysRoleTypeNull(this.sysRoleType == null);
    }

    /**
     * Get sysRoleType Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysRoleTypeSetted() {
        return this.sysRoleTypeSetted;
    }

    /**
     * Set sysRoleType Null
     *
     */
    final public void setSysRoleTypeNull() {
        this.sysRoleTypeNull = true;
    }

    final public void setSysRoleTypeNull(boolean aNullFlag) {
        this.sysRoleTypeNull = aNullFlag;
    }

    final public boolean isSysRoleTypeNull() {
        return this.sysRoleTypeNull;
    }

    /**
         * Get sysRoleDomainId
         *
         * @return long
         */
    final public long getSysRoleDomainId() {
        return sysRoleDomainId;
    }

    /**
     * Set sysRoleDomainId
     *
     * @param long
     */
    final public void setSysRoleDomainId(long sysRoleDomainId) {
        this.sysRoleDomainId = sysRoleDomainId;

        this.sysRoleDomainIdSetted = true;

        this.setSysRoleDomainIdNull(false);
    }

    /**
     * Get sysRoleDomainId Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysRoleDomainIdSetted() {
        return this.sysRoleDomainIdSetted;
    }

    /**
     * Set sysRoleDomainId Null
     *
     */
    final public void setSysRoleDomainIdNull() {
        this.sysRoleDomainIdNull = true;
    }

    final public void setSysRoleDomainIdNull(boolean aNullFlag) {
        this.sysRoleDomainIdNull = aNullFlag;
    }

    final public boolean isSysRoleDomainIdNull() {
        return this.sysRoleDomainIdNull;
    }

    /**
         * Get sysDomainCode
         *
         * @return String
         */
    final public String getSysDomainCode() {
        if (isSysDomainCodeNull()) {
            return null;
        } else {
            return StringUtils.trim(sysDomainCode);
        }
    }

    /**
     * Set sysDomainCode
     *
     * @param String
     */
    final public void setSysDomainCode(String sysDomainCode) {
        this.sysDomainCode = StringUtils.trim(sysDomainCode);

        this.sysDomainCodeSetted = true;

        this.setSysDomainCodeNull(this.sysDomainCode == null);
    }

    /**
     * Get sysDomainCode Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysDomainCodeSetted() {
        return this.sysDomainCodeSetted;
    }

    /**
     * Set sysDomainCode Null
     *
     */
    final public void setSysDomainCodeNull() {
        this.sysDomainCodeNull = true;
    }

    final public void setSysDomainCodeNull(boolean aNullFlag) {
        this.sysDomainCodeNull = aNullFlag;
    }

    final public boolean isSysDomainCodeNull() {
        return this.sysDomainCodeNull;
    }

    /**
         * Get sysDomainName
         *
         * @return String
         */
    final public String getSysDomainName() {
        if (isSysDomainNameNull()) {
            return null;
        } else {
            return StringUtils.trim(sysDomainName);
        }
    }

    /**
     * Set sysDomainName
     *
     * @param String
     */
    final public void setSysDomainName(String sysDomainName) {
        this.sysDomainName = StringUtils.trim(sysDomainName);

        this.sysDomainNameSetted = true;

        this.setSysDomainNameNull(this.sysDomainName == null);
    }

    /**
     * Get sysDomainName Has Been Setted
     *
     * @return boolean
     */
    final public boolean isSysDomainNameSetted() {
        return this.sysDomainNameSetted;
    }

    /**
     * Set sysDomainName Null
     *
     */
    final public void setSysDomainNameNull() {
        this.sysDomainNameNull = true;
    }

    final public void setSysDomainNameNull(boolean aNullFlag) {
        this.sysDomainNameNull = aNullFlag;
    }

    final public boolean isSysDomainNameNull() {
        return this.sysDomainNameNull;
    }

    public int hashCode() {
        final int prime = 31;
        int result = 1;

        result = (prime * result) + (int) (getId() ^ (getId() >>> 32));

        return result;
    }

    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }

        if ((obj instanceof SysRoleRelate) == false) {
            return false;
        }

        SysRoleRelate other = (SysRoleRelate) obj;

        if (getId() != other.getId()) {
            return false;
        }

        return true;
    }

    public String toString() {
        StringBuffer buffer = new StringBuffer();

        buffer.append("[");

        buffer.append("id=");
        buffer.append(this.id);

        buffer.append("relatedSysRoleId=");
        buffer.append(this.relatedSysRoleId);

        buffer.append("remarks=");
        buffer.append(this.remarks);

        buffer.append("status=");
        buffer.append(this.status);

        buffer.append("sysRoleGroupId=");
        buffer.append(this.sysRoleGroupId);

        buffer.append("relatedSysRoleCode=");
        buffer.append(this.relatedSysRoleCode);

        buffer.append("sysRoleName=");
        buffer.append(this.sysRoleName);

        buffer.append("sysRoleCode=");
        buffer.append(this.sysRoleCode);

        buffer.append("sysRoleType=");
        buffer.append(this.sysRoleType);

        buffer.append("sysRoleDomainId=");
        buffer.append(this.sysRoleDomainId);

        buffer.append("sysDomainName=");
        buffer.append(this.sysDomainName);

        buffer.append("sysDomainCode=");
        buffer.append(this.sysDomainCode);

        buffer.append("]");

        return buffer.toString();
    }
}
